<template>
	<view>
		<view class="smart-panel-head">
			<view class="smart-panel-head-title">navigator</view>
		</view>
		<view class="uni-padding-wrap uni-common-mt">
			
			<view class="uni-btn-v">
				<navigator url="navigate/navigate?title=navigate" hover-class="navigator-hover">
					<button type="default">跳转到新页面</button>
				</navigator>
				<navigator url="redirect/redirect?title=redirect" open-type="redirect">
					<button type="default">在当前页打开</button>
				</navigator>
				<navigator v-if="!hasLeftWin" url="/pages/tabBar/tabcompage/tabcompage" open-type="switchTab">
					<button type="default">跳转到tab页面</button>
				</navigator>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad(optoins) {
			console.log("navigator页面加载");
		},
		onShow() {
			console.log("navigator-------onShow");
		},
		onReady() {
			console.log("navigator-----onReady");
		},
		onHide() {
			console.log("navigator-----onHide");
		},
		onUnload() {
			console.log("navigator-----onUnload");
		},
		onPullDownRefresh() {
			console.log("navigator-----onPullDownRefresh开始刷新");
			setTimeout(()=>{
				uni.stopPullDownRefresh();
				console.log("navigator---刷新完成");
			},2000)
		},
		onReachBottom() {
			console.log("到底了");
			
		},
		methods: {
			goRef(){
				uni.startPullDownRefresh({
					
				})
			}
		}
	}
</script>

<style>
	
</style>
